package com.smasher.component.api

import com.smasher.component.entity.BaseData
import com.smasher.component.entity.BaseDataContainer
import com.smasher.component.entity.BeanCustomer
import com.smasher.net.http.HttpUtil
import okhttp3.RequestBody

class ApiKotlin {
    private val cClass = Service::class.java

    suspend fun submitLogin(body: RequestBody): BaseDataContainer<String> {
        return HttpUtil.getInstance().create(cClass).submitLogin(body)
    }

    suspend fun getCustomerList(body: RequestBody): BaseDataContainer<List<BeanCustomer>> {
        return HttpUtil.getInstance().create(cClass).getCustomerList(body)
    }
}